<template>
  <div>
    <p>{{value}}</p>
    <button :value="value" @click="$emit('input', value + 1)">+1</button>
  </div>
</template>

<script>
export default {
     props: {
        value: {
            type: Number,
        }
    },
  data(){
    return {}
  }
}
</script>

<style scoped>

</style>